]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Move gvc submodule to /subprojects/gvc
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 25 May 2017 16:28:03 +0000 (18:28 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Jul 2017 19:24:08 +0000 (21:24 +0200)
When using the meson build system, gvc will be built as a subproject.
As meson restricts submodules to a subprojects/ directory in the
source tree root, move the submodule there.

https://bugzilla.gnome.org/show_bug.cgi?id=783229

.gitmodules
Makefile.am
autogen.sh
configure.ac
po/POTFILES.in
src/Makefile.am
src/gvc [deleted submodule]
subprojects/gvc [new submodule]
tests/run-test.sh.in

index 7ee1d58c5eae5f99fb77490c5c7d1c48d5fc1851..9546d8c8022ea805d6e6c59e3b16807662307a76 100644 (file)
@@ -1,6 +1,6 @@
-[submodule "src/gvc"]
-       path = src/gvc
-       url = git://git.gnome.org/libgnome-volume-control
 [submodule "data/theme/gnome-shell-sass"]
        path = data/theme/gnome-shell-sass
        url = git://git.gnome.org/gnome-shell-sass
+[submodule "subprojects/gvc"]
+       path = subprojects/gvc
+       url = git://git.gnome.org/libgnome-volume-control
index dba94bab7cba5b8e204ae967361cafd02af9ab26..eba7d2b28657c31af723c9bd6feadf40a319626b 100644 (file)
@@ -1,7 +1,7 @@
 # Point to our macro directory and pick up user flags from the environment
 ACLOCAL_AMFLAGS  = -I m4 ${ACLOCAL_FLAGS}
 
-SUBDIRS = data js src  tests po docs
+SUBDIRS = data js subprojects/gvc src  tests po docs
 
 if BUILD_BROWSER_PLUGIN
 SUBDIRS += browser-plugin
index a73a427cf034ddfae2d75e463ff53c154573c97f..9794dc3b987e7eef1de825dc8bfce28b8a5a9d95 100755 (executable)
@@ -16,7 +16,7 @@ cd "${srcdir}"
 }
 
 # Fetch submodules if needed
-if test ! -f src/gvc/Makefile.am || test ! -f data/theme/gnome-shell-sass/COPYING;
+if test ! -f subprojects/gvc/Makefile.am || test ! -f data/theme/gnome-shell-sass/COPYING;
 then
   echo "+ Setting up submodules"
   git submodule init
index 64d235c3a8e36f79ecc175697f64d9cd0a4fddcd..916d7c108879fbd3ad81fb01335999afefe0a519 100644 (file)
@@ -259,7 +259,7 @@ AC_CONFIG_FILES([
   docs/reference/st/st-docs.sgml
   js/Makefile
   src/Makefile
-  src/gvc/Makefile
+  subprojects/gvc/Makefile
   browser-plugin/Makefile
   tests/Makefile
   po/Makefile.in
index bc9e6ac5546d7fb979bb319ec5450b5b26504d5a..fba077d6c89bb679388c20910b3671ae9d3c7588 100644 (file)
@@ -65,8 +65,6 @@ js/ui/windowAttentionHandler.js
 js/ui/windowManager.js
 js/ui/windowMenu.js
 src/calendar-server/evolution-calendar.desktop.in
-# Please do not remove this file from POTFILES.in. Run "git submodule init && git submodule update" to get it.
-src/gvc/gvc-mixer-control.c
 src/main.c
 src/shell-app.c
 src/shell-app-system.c
@@ -74,3 +72,5 @@ src/shell-global.c
 src/shell-keyring-prompt.c
 src/shell-polkit-authentication-agent.c
 src/shell-util.c
+# Please do not remove this file from POTFILES.in. Run "git submodule init && git submodule update" to get it.
+subprojects/gvc/gvc-mixer-control.c
index 656ce89bf18be73bdb60e27f97ecd382ef06dfb1..24628ccc910f659004f18f4ea21b1e5e883874a0 100644 (file)
@@ -8,8 +8,6 @@ noinst_LTLIBRARIES =
 noinst_PROGRAMS =
 service_in_files =
 
-SUBDIRS = gvc
-
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS =
 INTROSPECTION_SCANNER_ARGS = --warn-all --warn-error --add-include-path=$(srcdir) --add-include-path=$(MUTTER_GIR_DIR) -L$(MUTTER_TYPELIB_DIR)
@@ -287,6 +285,8 @@ shell-enum-types.c: $(srcdir)/shell-enum-types.c.in stamp-shell-enum-types.h
        rm -f $(@F).tmp
 EXTRA_DIST += shell-enum-types.c.in
 
+gvcdir = $(top_builddir)/subprojects/gvc
+
 libgnome_shell_ldflags = -avoid-version
 libgnome_shell_libadd =                \
        -lm                     \
@@ -294,7 +294,7 @@ libgnome_shell_libadd =             \
        libgnome-shell-menu.la  \
        libst-1.0.la            \
        libtray.la              \
-       gvc/libgvc.la           \
+       $(gvcdir)/libgvc.la     \
        $(NULL)
 
 libgnome_shell_menu_la_LDFLAGS = $(libgnome_shell_ldflags)
diff --git a/src/gvc b/src/gvc
deleted file mode 160000 (submodule)
index ce8e488..0000000
--- a/src/gvc
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit ce8e4880ce31e275c40825c4ed756c791107f810
diff --git a/subprojects/gvc b/subprojects/gvc
new file mode 160000 (submodule)
index 0000000..ce8e488
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit ce8e4880ce31e275c40825c4ed756c791107f810
index f55d96656f2f1189846babf1d16f8919f6ecb464..8113091c8b0e2eb39563e27bd9d77072480a5461 100755 (executable)
@@ -30,7 +30,7 @@ builddir=`cd $builddir && pwd`
 srcdir=@srcdir@
 srcdir=`cd $srcdir && pwd`
 
-GI_TYPELIB_PATH="$GI_TYPELIB_PATH${GI_TYPELIB_PATH:+:}@MUTTER_TYPELIB_DIR@:$builddir/../src:$builddir/../src/gvc"
+GI_TYPELIB_PATH="$GI_TYPELIB_PATH${GI_TYPELIB_PATH:+:}@MUTTER_TYPELIB_DIR@:$builddir/../src:$builddir/../subprojects/gvc"
 GJS_PATH="$srcdir:$srcdir/../js:$builddir/../js"
 GJS_DEBUG_OUTPUT=stderr
 $verbose || GJS_DEBUG_TOPICS="JS ERROR;JS LOG"